package com.smartleanx.module.hrm.controller.admin.employee.vo;

import com.smartleanx.framework.common.validation.InEnum;
import com.smartleanx.module.hrm.eums.employee.EmployeeStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 修改员工状态 Request VO")
@Data
public class EmployeeUpdateStatusReqVO {

    @Schema(description = "员工id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "员工id不能为空")
    private Long id;

    @Schema(description = "员工状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "员工状态不能为空")
    @InEnum(value = EmployeeStatusEnum.class, message = "员工状态格式不正确")
    private Integer state;
}
